import request from '@/utils/request'

// 查询产品入库记录行-sn关联列表
export function listSaleSnRef(query) {
  return request({
    url: '/mes/wm/saleSnRef/list',
    method: 'get',
    params: query
  })
}

// 查询产品入库记录行-sn关联详细
export function getSaleSnRef(id) {
  return request({
    url: '/mes/wm/saleSnRef/' + id,
    method: 'get'
  })
}

// 新增产品入库记录行-sn关联
export function addSaleSnRef(data) {
  return request({
    url: '/mes/wm/saleSnRef',
    method: 'post',
    data: data
  })
}

// 修改产品入库记录行-sn关联
export function updateSaleSnRef(data) {
  return request({
    url: '/mes/wm/saleSnRef',
    method: 'put',
    data: data
  })
}

// 删除产品入库记录行-sn关联
export function delSaleSnRef(id) {
  return request({
    url: '/mes/wm/saleSnRef/' + id,
    method: 'delete'
  })
}

//检测
export function checkSaleSnref(data) {
  return request({
    url: '/mes/wm/saleSnRef/check',
    method: 'post',
    data: data
  })
}
